#include "ShapeFactory.h"



Shape ShapeFactory::createRect(int x, int y, int h, int w)
{
    Shape sp;
    sp.set_type(Shape_ShapeType_RECT);
    sp.set_x(x), sp.set_y(y);
    sp.set_h(h), sp.set_w(w);
    return sp;
}

Shape ShapeFactory::createCircle(int x, int y, int h, int w)
{
    Shape sp;
    sp.set_type(Shape_ShapeType_CIRCLE);
    sp.set_x(x), sp.set_y(y);
    sp.set_h(h), sp.set_w(w);
    return sp;
}

Shape ShapeFactory::createBackout()
{
    Shape sp;
    sp.set_type(Shape_ShapeType_BACKOUT);
    return sp;
}

Shape ShapeFactory::createClear()
{
    Shape sp;
    sp.set_type(Shape_ShapeType_CLEAR);
    return sp;
}
